﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace CloudStorage_Backend.exception
{
    public class UserException : Exception
    {
        public UserExceptionMsg userExceptionMsg;
        public UserException(UserExceptionMsg msg) : base(msg.ToString()) {
            this.userExceptionMsg = msg;
        }
    }

    public enum UserExceptionMsg
    {
        USER_NOT_FOUND,
        NAME_OR_PASSWORD_WRONG,
        NAME_HAS_BEEN_USED
    }
}
